import request from '@/utils/request'

// 查询BOM明细列表
export function listBomItemDetail(query) {
  return request({
    url: '/system/bomItem/list',
    method: 'get',
    params: query
  })
}

// 查询BOM明细详细
export function getBomItemDetail(id) {
  return request({
    url: '/system/bomItem/' + id,
    method: 'get'
  })
}

// 新增BOM明细
export function addBomItemDetail(data) {
  return request({
    url: '/system/bomItem',
    method: 'post',
    data: data
  })
}

// 修改BOM明细
export function updateBomItemDetail(data) {
  return request({
    url: '/system/bomItem',
    method: 'put',
    data: data
  })
}

// 删除BOM明细
export function delBomItemDetail(id) {
  return request({
    url: '/system/bomItem/' + id,
    method: 'delete'
  })
}
